import java.util.Scanner;

public class Homework7 {
    public static void main(String[]args){
        Scanner a=new Scanner(System.in);
        System.out.println("输入王菲的三门分数");
        int num=a.nextInt();
        int num1=a.nextInt();
        int num2=a.nextInt();
        int avg=(num+num1+num2)/3;
        int sum=num+num1+num2;
        System.out.println("王菲三门成绩的和与平均分为"+sum+"，"+avg);
    }
}
